from Base import message, intersect, SS_VALID
from DRG import MDCF_DRG

def group(record):
  adrg_zd = []
  adrg_zd1 = []
  adrg_ss = ["00.5000x001","00.5000x004","00.5000x005","00.5001","00.5002","00.5100x001","00.5101","00.5102","00.5301","00.5302","00.5401","00.5402","17.5100","17.5200","37.9400x001","37.9400x002","37.9800x003","37.9800x004"]
  adrg_ss1 = []
  dept_list = []

  if True and record.ssList and record.ssList[0] in adrg_ss:
    message('符合FK3入组条件，匹配规则：主手术匹配')

    if MDCF_DRG.FK39_group(record):
      return 'FK39'
        
    return 'FK3'
  else:
    return ''
    
